<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="vue.js"></script>
	</head>
	<body>
		<div id="app">
			<div>{{msg}}</div>
			<div>{{msg}}</div>
			<button v-on:click="changeMsg(123)">修改成123</button>
			<button v-on:click="changeMsg('abc')">修改成abc</button>
			<button v-on:click="changeMsg(666)">修改成666</button>
		</div>
	</body>
	<script>
		new Vue({
			el:'#app',
			data:{msg:"哈拉少"},
			methods:{
				changeMsg(name){
					this.msg=name;
				}
			}
		})
	</script>
</html>
